package Public;

public enum TitleType
{
	PVEPoint(0),
	PVPPoint(1),
	HonorPoint(2),
	LegionPoint(3),
	LegionRank(4),
	VIP(5),
	GetHonor(6);

	private int intValue;
	private static java.util.HashMap<Integer, TitleType> mappings;
	private synchronized static java.util.HashMap<Integer, TitleType> getMappings()
	{
		if (mappings == null)
		{
			mappings = new java.util.HashMap<Integer, TitleType>();
		}
		return mappings;
	}

	private TitleType(int value)
	{
		intValue = value;
		TitleType.getMappings().put(value, this);
	}

	public int getValue()
	{
		return intValue;
	}

	public static TitleType forValue(int value)
	{
		return getMappings().get(value);
	}
}
